'use strict';

webappApp.filter('mailingAddress', function () {
  return function (input) {
    var address = '';
    if (input) {
      if (input.address) {
        address += input.address + ', ';
      }
      if (input.city && input.state) {
        address += input.city + ' ' + input.state;
      }
      if (input.state) {
      }
    }
    return address;
  };
});